package pers.wensheng.patterns.behavioral_pattern.strategy_pattern.foundation;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import pers.wensheng.patterns.behavioral_pattern.strategy_pattern.foundation.entity.Strategy;

/**
 * 促销员
 * 环境类,用于连接上下文，即把促销活动推销给客户，这里可以理解为销售员
 */
@AllArgsConstructor
@Getter
@Setter
public class SalesMan {

    /**
     * 聚合策略类
     */
    private Strategy strategy;

    /**
     *  由促销员展示活动给普通用户
     */
    public void salesManShow(){
        strategy.show();
    }
}
